home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
H-I
/
HyperHackers.cpt
/
Hyper-Hackers Queue 1.0
/
card_37437.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
54 lines
-- card: 37437 from stack: in.0
-- bmap block id: 0
-- flags: 0000
-- background id: 3797
-- name:
-- part contents for background part 1
----- text -----
From: winkler@Apple.COM (Dan Winkler)
Date: 10 Mar 88 17:34:20 GMT
Your script said:
go stack "destination"
if i > the number of cards then
doMenu "New Card"
end if
go card i
put f1contents into field "f1"
First of all, you don't need an "end if" with a single line if
statement, so you could have written:
go stack "destination"
if i > the number of cards then doMenu "New Card"
go card i
put f1contents into field "f1"
Or even:
go stack "destination"
if i > the number of cards then doMenu "New Card"
put f1contents into field "f1" of card i
Now, about your bug: your first go command takes you to the first card
of the destination stack. The doMenu "New Card", if it's executed,
makes a new card right after the first one. So the new card is card
number 2. But you always write into card i, not on the new card you
created. This can all be fixed by changing that first go so that it
reads:
go to last card of stack "destination"
So that when you make a new card it will be the very last card in the
stack.
-- part contents for background part 45
----- text -----
Re: Copying contents of stacks